package com.artlongs.webapp.controller;

import com.artlongs.webapp.service.reactor.HandlerBean;
import com.artlongs.webapp.service.reactor.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import reactor.event.Event;

import javax.servlet.http.HttpServletRequest;

@Controller
@RequestMapping("/")
public class ReactorController {

    private static final int NUMBER_OF_QUOTES = 10;


    @Autowired
    private TestService testService;
    @Autowired
    private HandlerBean handlerBean;


    @RequestMapping("reactor")
    public String reactor(HttpServletRequest req, Model model) {
        testService.fireEvent("linton good boy!!");

        return "";
    }
}
